
var recordFieldsemail=[
					
	{name:  "distinataire",mapping : "distinataire"},
	{name:  "sender",mapping : "sender"},
	{name:  "date_envoi",mapping : "date_envoi"},
	{name:  "heur_envoi",mapping : "heur_envoi"},
	{name:  "sujet",mapping : "sujet"},
	{name:  "objet",mapping : "objet"},
	{name:  "auteur",mapping : "auteur"},
	{name:  "message",mapping : "message"},
	{name:  "etat_sended",mapping : "etat_sended"},
	{name:  "phase",mapping : "phase"},
	{name:  "type_destintinataire",mapping : "type_destintinataire"},
	{name:  "id_mail",mapping : "id_mail"}

];

var myproxyemail=new Ext.data.HttpProxy({ 
	url : 'core/frm/action/email.action.php',
	id:'pemail',
	method: 'post'
});
var dsemail = new Ext.data.JsonStore({
	url : 'core/frm/action/email.action.php',
	id:'jban',
	proxy : myproxyemail,
	root : 'result',
	totalProperty : 'totalcount', 
	fields :recordFieldsemail ,
	idProperty: 'id_mail',
	autoLoad:true
});
			